﻿using System;
using System.Collections.Generic;
using VisionCloud.Core.Model.Sys;
using VisionCloud.Domain.Common;

namespace VisionCloud.Domain.DtoModel.Sys
{
    public class SysOrgDto
    {
        public String Id { get; set; }
        public String Name { get; set; }

        public String Description { get; set; }

        /// <summary>
        /// 父级编码
        /// </summary>
        public string SuperCode { get; set; }

        public string SuperId { get; set; }
    }

    public class SysOrgUserDto
    {
        public Guid YunUserGuid { get; set; }
        public Guid Id { get; set; }
        public String Name { get; set; }

        public String Description { get; set; }

        /// <summary>
        /// 父级编码
        /// </summary>
        public string SuperCode { get; set; }

        public string SuperId { get; set; }
    }

    public class SysOrgTreeDto
    {
        public string id { get; set; }

        public string name { get; set; }

        public string description { get; set; }

        public bool isLast { get; set; }
        public List<SysUser> managers { get; set; }
        public List<SysUser> members { get; set; }
    }

    public class SysOrgTreeView
    {
        public string id { get; set; }

        public string name { get; set; }

        public string superId { get; set; }

        public List<SysOrgTreeView> children { get; set; }
    }

    public class SysOrgOPDto
    {
        public String Id { get; set; }

        public List<String> UserIds { get; set; }
    }

    public class SysOrgPageDto : PageBase
    {
        /// <summary>
        /// 查询内容
        /// </summary>
        //public String Query { get; set; }

        public String Id { get; set; }
        public string Name { get; set; }
    }
}